-- GENERATED SPELL FOR [Gnarlpine Totemic] --


function spell0_2014(pUnit, Event) --@Gnarlpine Vengeance,Self--
pUnit:FullCastSpellOnTarget(5628,pUnit)
pUnit:RegisterEvent('Sorts_2014', 6340, 1)
end

function spell1_2014(pUnit, Event) --@Healing Ward,Self--
pUnit:FullCastSpellOnTarget(5605,pUnit)
pUnit:RegisterEvent('Sorts_2014', 32000, 1)
end

function Sorts_2014(pUnit, Event)
local choix_sorts_2014 = math.random(0, 1)
if choix_sorts_2014 == 0 then
pUnit:RegisterEvent('spell0_2014', 1, 1)
end
if choix_sorts_2014 == 1 then
pUnit:RegisterEvent('spell1_2014', 1, 1)
end
end

function mob2014_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2014', math.random(1500, 3000), 1)
end

function mob2014_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2014_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2014_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2014, 1, 'mob2014_Action')
RegisterUnitEvent(2014, 2, 'mob2014_Leave')
RegisterUnitEvent(2014, 3, 'mob2014_Kill')
RegisterUnitEvent(2014, 4, 'mob2014_Die')
